﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.Models.Models
{
    public class Base_MenuInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 菜单名
        /// </summary>
        [MaxLength(50)]
        public string MenuName { get; set; } = null!;

        /// <summary>
        /// 菜单路径
        /// </summary>
        [MaxLength(100)]
        public string? MenuUrl { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        [MaxLength (50)]
        public string? MenuIcon { get; set; }


        public int PId { get; set; }

        public int? IsShow { get; set; }

        public int? MenuOrder { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public int Status { get; set; } = 1;
    }
}
